<?php
	require_once(dirname(__FILE__).'/qcubed.inc.php');	
        $mainPage = true;
        $strPageTitle="Apps";
	require('includes/header.inc.php');
        require(__PERM__. "/auth.inc.php");
?>
        <!-- Pagetitle -->
        <h1 class="pagetitle">ILB CRM Site</h1>

			
<?php
        //print_dir();
        print ("<table border='0' width=\"100%\" cellpadding=\"10\">");
        echo "<tr>";
        $i=0;
        foreach( $menu as $key => $menuitem){            
            if ($i==5){
                echo "</tr><tr>";
                $i=0;
            }
            print "<td>";
                printf('<a href="%s"> <h3>%s</h3><img src="%s" alt="%s Image"/></a>',
                                $menuitem['config']['path'],QApplication::Translate($key),$menuitem['config']['image'],$menuitem['config']['image']
                      );
            print "</td>";
            $i++;
            
        }
        echo "</tr>";
        print("</table>");
	require('includes/footer.inc.php');
?>